﻿#include<iostream>
using namespace std;

int main()
{
    int select = 0;

    while (true)
    {
        cout << "======================  欢迎来到传智播客机房预约系统  ====================="
             << endl;
        cout << endl << "请输入您的身份" << endl;
        cout << "\t\t -------------------------------\n";
        cout << "\t\t|                               |\n";
        cout << "\t\t|          1.学生代表           |\n";
        cout << "\t\t|                               |\n";
        cout << "\t\t|          2.老    师           |\n";
        cout << "\t\t|                               |\n";
        cout << "\t\t|          3.管 理 员           |\n";
        cout << "\t\t|                               |\n";
        cout << "\t\t|          0.退    出           |\n";
        cout << "\t\t|                               |\n";
        cout << "\t\t -------------------------------\n";
        cout << "输入您的选择: ";
        cin >> select;

        switch (select)
        {
            case 0:
                cout << "欢迎下一次使用" << endl;
                system("pause");
                return 0;

            case 1:
                cout << "你是学生" << endl;
                break;

            case 2:
                cout << "你是老师" << endl;
                break;

            case 3:
                cout << "你是管理员" << endl;
                break;

            case 4:
                cout << "你是退出" << endl;
                break;

            default:
                cout << "输入有误，请重新选择！" << endl;
                system("pause");
                system("cls");
                break;
        }
    }

    system("pause");
    return 0;
}